package com.cqc.preferenceactivity01;

import android.app.Activity;
import android.preference.PreferenceActivity;
import android.support.v4.app.FragmentActivity;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import java.util.List;

public class Main2Activity extends Activity {//PreferenceActivity

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main2);

        PreFragment frag = new PreFragment();
        getFragmentManager().beginTransaction().replace(R.id.frameLayout, frag, "PreFragment").commit();


    }

}
